﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace DB_NH.DB_Model.ywxt
{
    /// <summary>
    /// 流程类型
    /// </summary>
    public class wf_type
    {
        #region 数据表名称
        public static readonly string TableName = "wf_type";
        #endregion

        #region 数据表字段结构
        public struct Columns
        {
            /// <summary>
            /// 类型ID
            /// </summary>
            public static readonly string wf_type_id = @"wf_type_id";

            /// <summary>
            /// 类型名称
            /// </summary>
            public static readonly string wf_type_name = @"wf_type_name";

            /// <summary>
            /// 类型代码
            /// </summary>
            public static readonly string wf_type_code = @"wf_type_code";

            /// <summary>
            /// 记录是否有效
            /// </summary>
            public static readonly string is_valid = @"is_valid";

            /// <summary>
            /// 记录创建时间
            /// </summary>
            public static readonly string create_date = @"create_date";
        }
        #endregion

        #region 字段
        /// <summary>
        /// 类型ID
        /// </summary>
        public virtual string wf_type_id { get; set; }

        /// <summary>
        /// 类型名称
        /// </summary>
        public virtual string wf_type_name { get; set; }

        /// <summary>
        /// 类型代码
        /// </summary>
        public virtual string wf_type_code { get; set; }

        /// <summary>
        /// 记录是否有效
        /// </summary>
        public virtual int is_valid { get; set; }

        /// <summary>
        /// 记录创建时间
        /// </summary>
        public virtual DateTime create_date { get; set; }

        /// <summary>
        /// 所属类型下的流程
        /// </summary>
        public virtual IList<wf_node> wf_nodes { get; set; }
        #endregion

        public wf_type()
        {
            wf_nodes = new List<wf_node>();
        }
    }
}
